package com.example.service;

import com.example.dto.StudentDetailDTO;
import com.example.pojo.PageBean;
import com.example.pojo.Student;

public interface StudentService {
    PageBean<Student> list(Integer pageNum, Integer pageSize, String name);
    Student findById(Integer id);

    StudentDetailDTO getStudentDetail(Integer id);

    // 增加信誉分
    void increaseStudentCreditScore(Integer id, int points);

    // 减少信誉分
    void decreaseStudentCreditScore(Integer id, int points);
}